package com.xxx.rpc.common.util;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Typhoon
 * @description
 * @date 2017-11-20 14:37 Monday
 * @since V2.0
 * @modified by
 */
public class CollectionUtils {

    public  static  boolean isEmpty(List<?> list) {
        if(null == list || 0 == list.size()) {
            return true;
        }
        return list.size() <= 0;
    }

    public static void main(String[] args) {
        List<String> list = new ArrayList<>(2);
        list.add("a");
        list.add("b");
        System.out.println(isEmpty(list));
    }

}
